package com.zeng.sys.authmd.servicemodule.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.zeng.nicecore.bean.CommonBean;
import lombok.*;
import lombok.experimental.FieldNameConstants;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;


/**
*
* @description 角色表
* @author 今天多少号
* @version 2019-12-30 10:35:06
*/
@Data
@Entity
@Table(name = "sys_role")
@TableName(value = "sys_role")
@EqualsAndHashCode(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
@FieldNameConstants
public class Role extends CommonBean {

    //角色名称 
    @Column(length = 20)
    private String name;

    //详细信息 
    @Column
    private String detailInfo;

    //角色配置
    @Column
    private String roleConfig;

    //'是否可用,1：可用，0不可用
    @Column(length = 1)
    private Short available;

}
